package utils

import (
	"fmt"
	"regexp"
)

func PrintMessage(message string) {
	fmt.Println(message)
}

func Contains(slice []string, item string) bool {
	for _, s := range slice {
		// 正则匹配
		matched, err := regexp.MatchString(s, item)
		if err != nil {
			panic(err)
		}
		if matched {
			return true
		}
	}
	return false
}
